<template>
    <div class="about">
        <div class="site-content">
            <div class="content-warp">
                <div class="about-me about-info">
                    <section-title id="Guestbook"><span>❤</span>我的</section-title>
                    <div class="info-card">
                        <div class="contactForm">
							<el-button style="padding: 10px;" @click="info()"> 我的信息 </el-button>
							<el-button style="padding: 10px;margin-left: 20px;" @click="club()"> 我的社团 </el-button>
							<el-button style="padding: 10px;margin-left: 20px;" @click="article()"> 我的文章 </el-button>
							<el-button style="padding: 10px;margin-left: 20px;" @click="reord()"> 历史记录 </el-button>
							<el-button style="padding: 10px;margin-left: 20px;" @click="race()"> 我的比赛 </el-button>
							<el-button style="padding: 10px;margin-left: 20px;" @click="like()"> 我的点赞 </el-button>
							<el-button style="padding: 10px;margin-left: 20px;" @click="cart()"> 我的收藏 </el-button>
<!--							<el-button style="padding: 10px;margin-top: 20px;" @click=""> 我的评论 </el-button>-->
							<el-button style="padding: 10px;margin-top: 20px;" @click="manager()"> 系统管理 </el-button>
                            <!-- <div class="form-item">
                                <label for="mail">账号</label>
                                <input class="v" v-model="telephone" type="email" name="mail" id="mail">
                            </div>
                            <div class="form-item">
                                <label for="content">密码</label>
                                <input class="v" v-model="password" placeholder="密码" :type="passwordType" id="mail">
                            </div> -->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    import SectionTitle from "@/components/section-title.vue";

    export default {
        name: "About",
        data() {
            return {
				passwordType: 'password',
				telephone: '',
				password: ''
            }
        },
        components: {
          SectionTitle
          // Quote,
        },
        methods: {
			info() {
				this.$router.push("/myInfo")
			},
			club() {
				this.$router.push("/myClub")
			},
			article() {
				this.$router.push("/myArticle")
			},
			race() {
				this.$router.push("/myRace")
			},
			manager() {
				this.$router.push("/managerClub")
			},
			reord() {
				this.$router.push("/myRecord")
			},
			like() {
				this.$router.push("/myLike")
			},
			cart() {
				this.$router.push("/myCart")
			}
		},
        mounted() {
        }
    }
</script>

<style scoped lang="less">
    .about {
        padding-top: 40px;
    }

    .content-warp {
        margin-top: 80px;

        .about-info {
            margin: 30px 0;

            span {
                color: red;
                margin-right: 10px;
            }

            .info-card {
                min-height: 100px;
                padding: 20px;
                border-radius: 3px;
                margin: 30px 0 50px 0;
                box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
                p{
                    line-height: 1.7rem;
                }
            }
        }
        .contactForm{
			text-align: center;
            width: 100%;
            padding: 20px;
            .form-item{
                align-items: center;
                display: flex;
                &:not(:last-child){
                    margin-bottom: 20px;
                }
                label{
                  width: 80px;
                }
                .v{
                    min-height: 40px;
                    line-height: 20px;
                    border-radius: 3px;
                    padding: 2px 10px;
                    outline:none;
                    border: 1px solid #8fd0cc;
                    width: 100%;
                    resize: vertical;
                }
                button{
                    width: 100px;
                    height: 40px;
                    border-radius: 3px;
                    outline:0;
                    border-style: none;
                    cursor: pointer;
                    background-color: #409eff;
                    color: white;
                    &:hover{
                        opacity: 0.8;
                    }
                }
            }
        }
    }

    /*******/
    @media (max-width: 800px) {
        .content-warp {
            margin-top: 0;
        }
    }
</style>
